<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name=viewport content="width=device-width,initial-scale=1,user-scalable=0">
    <title>支付成功</title>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
<div style="width: 100%;height: 480px;">
    <div style="width: 100%;line-height: 100px;font-size: 14px;text-align: center;color: #000000;">成功支付，请出示商家您的支付凭证</div>
    <div style="width: 100%;height: 240px;text-align: center;">
        <img src="./image/android/drawable-hdpi/ic_hook_01.png" alt="支付凭证图" style="margin:0 auto;width: 150px;"><br>
        <div style="float: left;margin-top: 20px;width: 80%;margin-left: 10%;line-height: 30px;font-size: 13px;">
            <h3 id="title">博兰特啤酒</h3>
            <p id="subtitle" style="font-size: 14px">冰爽夏日，博兰特带你冰爽一夏</p>
            <h3>共购买  <span id="num">12</span>罐</h3>
        </div>
    </div>
    <div onclick="fun()" style="border-radius: 8px;text-align: center;width: 60%;margin: 0 auto;line-height: 40px;background-color: red;color:#ffffff">
        返回上一页
    </div>
    <!--<a href=""></a>-->
</div>
<!--瓶数上一层传过来，其他，这边获取商品信息-->
<script language="JavaScript">
    var url = window.location.href;
    var num = url.split("num=")[1].split("&")[0];
    var goodsID = url.split("goodsID=")[1].split("&")[0];
    var sessionoID = url.split("sessionID=")[1];

    document.getElementById("num").innerText=num;

    $.post("http://www.brandt-beer.com/app/goods/getGoods",
        {GOODS_ID:goodsID,SESSION_ID:sessionoID},function (data) {
             console.log(data);
            var date = data.data;
            goodsID = date.GOODS_ID;
            document.getElementById("title").innerText=date.GOODS_TITLE;
            document.getElementById("subtitle").innerText=date.GOODS_SUBTITLE;
        })
    function fun() {
        window.location.href="http://localhost:63342/bolanteBeer/userChoose/userSelect.html";
    }

</script>


</body>
</html>